    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>业务功能首页</title>
<link rel="stylesheet" href="<%=path%>/css/bootstrap.min.css" />
<link rel="stylesheet" href="<%=path%>/css/easyui.css" />
<link rel="stylesheet" href="<%=path%>/css/icon.css" />
<style>
body {
	background-color: #f1f1f1;
}

.lightBg {
	background-color: #fff;
	padding: 5px 20px;
}

ul {
	list-style-type: none;
}

li {
	display: inline-block;
}

li {
	margin: 10px 0;
}

input.labelauty+label {
	font: 12px "Microsoft Yahei";
}
</style>
</head>
<body>

	<div class="container">
		<div class="row lightBg">
			<!--标题-->
			<h2 class="pull-left">
				<img src="<%=path%>/images/logo.png" style="width: 80px;">
				智游科技项目申报系统
			</h2>
			<p class="pull-right" style="margin-top: 20px;">
				欢迎您，项目负责人 ${user.UName }&nbsp;|&nbsp;<a href="">站内消息(2)</a>&nbsp;<a
					href="<%=path%>/news/toIndex2">退出</a>
			</p>
		</div>
		<div class="row" style="margin-top: 20px;">
			<!--页面一二级菜单部分，公用的-->
			<div class="easyui-tabs" style="">
				<div title="首页" style="padding:10px">首页暂无设计</div>
				<div title="申报管理" style="padding:10px">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path %>/report?uid=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">填写申请书</a> <a
							href="#" class="easyui-linkbutton" data-options="plain:true"
							style="background:  #B0E0E6;">基本信息</a>
					</div>
				</div>
				<div title="项目管理" style="padding:10px">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path%>/toprincipal" class="easyui-linkbutton"
							data-options="plain:true">查看项目</a>
					</div>
				</div>
				<div title="拨款管理" style="padding:10px">此功能暂不实现</div>
				<div title="系统管理" style="padding:10px" data-options="plain:true">
					<div class="easyui-panel" style="padding:5px;">
						<a href="<%=path%>/user/my?id=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">个人信息维护</a> <a
							href="<%=path%>/user/personal?id=${user.UId}"
							class="easyui-linkbutton" data-options="plain:true">个人账号管理</a>
					</div>
				</div>
			</div>
		</div>

		<!--页面实际数据管理部分-->
		<div class="row" style="margin-top: 20px;">
			<div style="background-color: #fff;padding: 20px;">
				<img alt="" src="<%=path%>/images/9-x-office-document.png"
					style="height: 60px; width:60px "><span
					style="font-size: 24px;vertical-align: middle;"> 项目基本信息</span>
				<center>
					<c:if test="${pro==null }">
						<form action="<%=path%>/subPro">
					</c:if>
					<c:if test="${pro!=null }">
						<form action="<%=path%>/updateProjects">
					</c:if>
					<span style="font-size: 18px;vertical-align: middle;"> 项目类型</span>
					<ul class="dowebok">
						<li><input type="radio" name="PType" value="常规处"
							checked="checked">常规处</li>
						<li><input type="radio" name="PType" value="科技型中小企业技术创新基金项目">科技型中小企业技术创新基金项目</li>
						<li><input type="radio" name="PType" value="国家科技计划项目配套资助">国家科技计划项目配套资助</li>
						<li><input type="radio" name="PType" value="企业创新能力建设计划">企业创新能力建设计划</li>
						<li><input type="radio" name="PType"
							value="战略性新型产品和重点新产品研发补贴">战略性新型产品和重点新产品研发补贴</li>
					</ul>
					<table border="1px"
						style="width: 90%;height: 240px;font-size: 16px; text-align: center;">
						<tr>
							<td style="width: 10%">项目名称:</td>
							<td colspan="5"><input type="text" name="PName"
								style="width: 554px; " required="required" value="${pro.PName }"></td>
						</tr>
						<tr>
							<td>单位名称:</td>
							<c:if test="${pro==null }">
								<td colspan="5">${user.company.CName }</td>
							</c:if>
							<c:if test="${pro!=null }">
								<td colspan="5">${pro.company.CName }</td>
							</c:if>
						</tr>
						<tr>
							<td>联系人:</td>
							<c:if test="${pro==null }">
								<td>${user.UName }</td>
							</c:if>
							<c:if test="${pro!=null }">
								<td>${pro.PContact }</td>
							</c:if>
							<td>联系电话:</td>
							<td><input type="text" name="PTel" required="required"
								value="${pro.PTel }"></td>
							<td>手机:</td>
							<td><input type="text" name="PPhone" required="required"
								value="${pro.PPhone }"></td>
						</tr>
						<tr>
							<td>推荐单位:</td>
							<c:if test="${pro==null }">
								<td colspan="2">${user.company.CUpmgr }</td>
							</c:if>
							<c:if test="${pro!=null }">
								<td colspan="2">${pro.company.CUpmgr }</td>
							</c:if>
							<c:if test="${pro==null }">
								<td>填报时间:</td>
							</c:if>
							<c:if test="${pro!=null }">
								<td>修改时间:</td>
							</c:if>
							<td colspan="2"><input type="text" name="PTime"
								required="required"></td>
						</tr>
					</table>
					<hr>
					<div style="text-align: left">
						<input type="submit" value="保存"> <input type="button"
							value="返回">
					</div>
					<c:if test="${pro==null }">
						<input type="hidden" name="cid" value="${user.company.CId }">
						<input type="hidden" name="uid" value="${user.UId }">
					</c:if>

					<c:if test="${pro!=null }">
						<input type="hidden" name="uid" value="${user.UId }">
						<input type="hidden" name="pid" value="${pro.PId }">
					</c:if>
					</form>
				</center>
			</div>
		</div>


		<script src="<%=path%>/js/jquery1.12.4.min.js">
		</script>
		<script src="<%=path%>/js/bootstrap.min.js"></script>
		<script src="<%=path%>/js/jquery.easyui.min.js"></script>
		<script type="text/javascript">
		
			$(function() {
				$('.easyui-tabs').tabs('select', '申报管理');
		
			});
		</script>
</body>
</html>